b4popover = {}

interface

b4popover.confirm = function (options: , onCancel, onConfirm) {
    // header
    if (options.el) {

    } else {
        return false;
    }

    // body

    // footer
    var footer = document.createElement("div");

    var btn_cancel = document.createElement("button");
    btn_cancel.classList.add("btn btn-secondary");
    btn_cancel.addEventListener("click", oncancel);

    var btn_confirm = document.createElement("button");
    btn_confirm.classList.add("btn btn-primary");
    btn_confirm.addEventListener("click", onConfirm);
}